<!DOCTYPE html>
<html><head>
<meta http-equiv="X-UA-Compatible" content="IE=7">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php if (!empty($this->htitle)){echo $this->htitle . ' - ';}?><?php echo $this->cfg['title'];?></title>
<link href="<?php echo $this->baseUrl;?>/style/global.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="info_header">
    <ul>
    <a href="<?php echo $this->fullUrl;?>/">主页</a>|<a href="#" onclick="javascript:addFavorite('<?php echo $this->fullUrl;?>', '<?php echo $this->cfg['title'];?>');return false;">加入收藏</a>|<a href="<?php echo $this->fullUrl;?>/en">ENGLISH</a>   
    </ul>
</div>
<div class="con_header pr">
		<a title="回到首页" class="logo_site pa" href="<?php echo $this->fullUrl;?>/"></a>
        <a title="新浪微博" class="micro_blog pa" href="<?php echo $this->cfg['weibo_icscc'];?>" target="_blank">新浪微博</a>
		<div class="serach_index pa">
			<input id="searchname" name="" class="s_site l" value="<?php if (!empty($this->q))echo $this->q;else echo '全站搜索';?>" type="text">
		<a id="asearch" class="entry_s r" href="#" title="全站搜索">全站搜索</a>
		</div>
</div>

<div class="wrapper pr">
    <!-- 全站导航 -->
    <div class="nav pr">
        <ul id="header_nav_ul">
<?php
$first_note = $this->types['zxgk'];
$v = current($first_note);
if ($v['isleaf'])
	$url = $this->url($this->baseUrl, 'zxgk', "show", "id=" . $v['leafid']);
else
	$url = $this->url($this->baseUrl, 'zxgk', "list", "id=" . $v['id']); 
?>
            <li><a href="<?php echo $url;?>" class="intro" title="中心概况">中心概况</a>
                <ul class="subnav pa" style="display:none">
                <?php
                foreach ($this->types['zxgk'] as $v){
                	if ($v['isleaf'])
						$url = $this->url($this->baseUrl, 'zxgk', "show", "id=" . $v['leafid']);
					else
						$url = $this->url($this->baseUrl, 'zxgk', "list", "id=" . $v['id']);
						
                	echo "<li><a href=\"{$url}\">{$v['name']}</a></li>";
                }
                ?>
                </ul>
            </li><?php
$first_note = $this->types['zzjg'];
$v = current($first_note);
if ($v['isleaf'])
	$url = $this->url($this->baseUrl, 'zzjg', "show", "id=" . $v['leafid']);
else
	$url = $this->url($this->baseUrl, 'zzjg', "list", "id=" . $v['id']); 
?>
            <li><a href="<?php echo $url;?>" class="group" title="组织架构">组织架构</a>
                <ul class="subnav pa" style="display:none">
                <?php
                foreach ($this->types['zzjg'] as $v){
                	if ($v['isleaf'])
						$url = $this->url($this->baseUrl, 'zzjg', "show", "id=" . $v['leafid']);
					else
						$url = $this->url($this->baseUrl, 'zzjg', "list", "id=" . $v['id']);
						
                	echo "<li><a href=\"{$url}\">{$v['name']}</a></li>";
                }
                ?>
                </ul>
            </li>
            <li><a href="<?php echo $this->url($this->baseUrl, "article", "list","id=" . $this->cfg['article_types']['tzgg']['id']);?>" class="news" title="通知公告">通知公告</a></li>
            <?php
$first_note = $this->types['fwxz'];
$v = current($first_note);
if ($v['isleaf'])
	$url = $this->url($this->baseUrl, 'fwxz', "show", "id=" . $v['leafid']);
else
	$url = $this->url($this->baseUrl, 'fwxz', "list", "id=" . $v['id']); 
?>
            <li><a href="<?php echo $url;?>" class="scholar" title="访问学者">访问学者</a>
                <ul class="subnav pa" style="display:none">
                <?php
                foreach ($this->types['fwxz'] as $v){
                	if ($v['isleaf'])
						$url = $this->url($this->baseUrl, 'fwxz', "show", "id=" . $v['leafid']);
					else
						$url = $this->url($this->baseUrl, 'fwxz', "list", "id=" . $v['id']);
						
                	echo "<li><a href=\"{$url}\">{$v['name']}</a></li>";
                }
                ?>
                </ul>
            </li>
            <li><a href="<?php echo $this->url($this->baseUrl, "article", "list","id=" . $this->cfg['article_types']['mtbd']['id']);?>" class="media" title="媒体报道">媒体报道</a></li>
<?php
$first_note = $this->types['publication'];
$v = current($first_note);
$url = $this->url($this->baseUrl, 'publication', "list", "id=" . $v['id']); 
?>
            <li><a href="<?php echo $url;?>" class="publish" title="出版讯息">出版讯息</a>
                <ul class="subnav pa" style="display:none">
                <?php
                foreach ($this->types['publication'] as $v){
                	if ($v['isleaf'])
						$url = $this->url($this->baseUrl, 'publication', "show", "id=" . $v['leafid']);
					else
						$url = $this->url($this->baseUrl, 'publication', "list", "id=" . $v['id']);
						
                	echo "<li><a href=\"{$url}\">{$v['name']}</a></li>";
                }
                ?>
                </ul>
            </li>
            <li><a href="<?php echo $this->url($this->baseUrl, "article", "list","id=" . $this->cfg['article_types']['tuzl']['id']);?>" class="resourse" title="图书资料">图书资料</a></li>
            <li><a href="<?php echo $this->url($this->baseUrl, "article", "list","id=" . $this->cfg['article_types']['xhxgjyxjh']['id']);?>" class="plan" title="新汉学国际研修计划">新汉学国际研修计划</a></li>
        </ul>
    </div>
    <!-- 全站导航 -->

<script><?php
$headerimage = $this->headerimages;
reset($headerimage);
$arr_article = current($headerimage);
echo 'var headerimage_index=1;';
echo 'var headerimage_maxindex = ' . (count($headerimage) +1) . ';';
echo 'var headerimages = ' . json_encode($headerimage) . ';';
?>
setInterval(function (){
	toggleHeaderImage(headerimage_index+1);
}, 10000);
</script>
    <!--大眼睛-->
        <div class="mod_rollad pr" id="headerimage_p">
        	<img class="pa" src="<?php echo $arr_article['image'];?>" height="260px" width="940px">
        	<span id="head_article_url">
        	<?php
        	if (!empty($arr_article['url'])){?>
            <a href="<?php echo $arr_article['url'];?>"  target="_blank"><p class="pa"><?php echo $arr_article['title'];?></p></a>
            <?php }else{?>
            <p class="pa"><?php echo $arr_article['title'];?></p>
            <?php }?>
            </span>
            <div class="pa num_rollad">
            <?php
            $seq = 1;
            $current = 'class="current"';
            foreach ($headerimage as $v){
            	echo "<a id=\"headerimage_a_{$seq}\" href=\"#seq\" onclick=\"javascript:return toggleHeaderImage($seq);\" $current>$seq</a>";
            	
            	$current = "";
            	$seq++;
            }
            ?>
            </div>
        </div>
    <!--大眼睛-->